function loginout() {
    if(confirm("是否确定注销？")) {
        //后端删除session
        jQuery.ajax({
            url:"/user/loginout",
            type:"POST",
            data:{},
            success:function(res){}
        });
        //跳转到登录页面
        location.href = "login.html";
    }
}